package com.diy.sigmund.diycommon.entity.constant;

/**
 * 分布式锁常量类
 *
 * @author ylm-sigmund
 * @since 2021/8/13 11:25
 */
public class LockConstant {

    /** test_lock */
    public static final String TEST_LOCK = "test_lock";
    /** "refreshToken:" */
    public static final String REFRESH_TOKEN = "refreshToken:";
    /** 自旋锁前缀 */
    public static final String SPAN_LOCK_KEY_PREFIX = "spanLock:";
    /** 处理抢购记录锁前缀 */
    public static final String HANDLE_PANIC_BUYING_RECORD_KEY_PREFIX = "handlePanicBuyingRecord:";

    public static final String COMMON_KEY = "99999:";
    /** 库存 缓存前缀 */
    public static final String INVENTORY_KEY_PREFIX = "inventory:";
}
